from collections.abc import Sequence
from typing import Any

from django.contrib.auth import get_user_model
from backend.users.tests.factories import UserFactory
import pytest
from rest_framework.test import APIClient

@pytest.fixture
def rest_client():
    user = UserFactory()
    client = APIClient()
    client.force_authenticate(user=user)
    return client